<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>径向渐变</title>
		<style type="text/css">
			div{
				width: 300px;
				height: 200px;
				display: inline-block;
			}
			#div1{
				background-image: radial-gradient(farthest-side at 100px 50px,red 50%,green);
			}
			#div2{
				background-image: radial-gradient(closest-side at 100px 50px,red 50%,green);
			}
			#div3{
				background-image: radial-gradient(farthest-corner at 100px 50px,red 50%,green);
			}
			#div4{
				background-image: radial-gradient(closest-corner at 100px 50px,red 50%,green);
			}
		</style>
	</head>
	<body>
		<div id="div1"></div>
		<div id="div2"></div>
		<div id="div3"></div>
		<div id="div4"></div>
	</body>
</html>
